package com.liuqi.aiagent.service;

import com.liuqi.aiagent.transfer.model.Result;
import com.liuqi.aiagent.transfer.vo.AgentChatRecordVo;
import com.liuqi.openai.data.message.ChatMessage;
import java.util.List;

/**
 * @author liuqi
 * @date 2025/7/21
 **/
public interface ChatRecordService {

    /**
     * 查询最近聊天记录，转换为 AI消息
     *
     */
    List<ChatMessage> findRecentlyOfChatMessage(String agentName, String username, int limit);

    /**
     * 查询最近聊天记录，转换为 Vo
     *
     */
    Result<List<AgentChatRecordVo>> findRecentlyOfVo(String agentName, String username, int limit);

    Result deleteByAgentNameAndUsername(String agentName, String username);

}
